<?php
/**
 * Created by PhpStorm.
 * User: zhuyujun
 * Date: 2017/10/30
 * Time: 9:54
 */

namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;


class TemplateRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Template\Controllers', 'prefix' => 'template'], function ($router) {
            //获取所有模板
            $setFunction = 'getTemplateAll';
            $router->get('/' . $setFunction, 'IndexController@' . $setFunction);
            $router->post('/' . $setFunction, 'IndexController@' . $setFunction);

        });
    }
}